import request from '@/utils/request'
import id from "element-ui/src/locale/lang/id";

// 查询文件上传列表
export function listFile(query) {
  return request({
    url: '/violate/file/list',
    method: 'get',
    params: query
  })
}

// 查询文件上传详细
export function getFile(id) {
  return request({
    url: '/violate/file/' + id,
    method: 'get'
  })
}

// 新增文件上传
export function addFile(data) {
  return request({
    url: '/violate/file',
    method: 'post',
    data: data
  })
}


// cxjz
export function funcxjz(id) {
  return request({
    url: '/violate/file/cxjx/' +id,
    method: 'post'
  })
}



// 修改文件上传
export function updateFile(data) {
  return request({
    url: '/violate/file',
    method: 'put',
    data: data
  })
}

// 删除文件上传
export function delFile(id) {
  return request({
    url: '/violate/file/' + id,
    method: 'delete'
  })
}

// 下载
export function exportToId(id) {
  return request({
    url: '/violate/file/exportToId/' + id,
    method: 'get'
  })
}

